package com.xcc.commandpattern.demo01;

/**
 * @Description: GarageDoorOpenCommand
 * @Author xiechuang
 * @Date 2022/9/7
 */
public class GarageDoorOpenCommand implements Command {

    GarageDoor garageDoor;

    public GarageDoorOpenCommand(GarageDoor garageDoor) {
        this.garageDoor = garageDoor;
    }

    @Override
    public void execute() {
        garageDoor.up();
    }

}
